﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace SerieSpotter.Models
{
    public class Season
    {
        [Key]
        public int Id { get; set; }

        public int ShowId { get; set; }
       
        public virtual Show Show { get; set; }
        [Required]
        public int Number { get; set; }

        public String PosterURL { get; set; }

        public int EpisodesNumber { get; set; }

        public virtual ICollection<Episode> Episodes { get; set; }
    }
}